# Retrieve a list of available behavior table of specified step

Retrieve a list of available behavior table of specified step.

Endpoint: POST /entities/journeys/{journeyId}/available_behaviors_for_step
Version: 1.0.0
Security: TdApikeyAuth

## Path parameters:

  - `journeyId` (integer, required)
    Journey ID

## Query parameters:

  - `stepId` (string)

## Request fields (application/vnd.treasuredata.v1+json):

  - `type` (string)
    Enum: "journey"

  - `attributes` (object)

  - `attributes.name` (string, required)

  - `attributes.description` (string)

  - `attributes.state` (string)
    Enum: "draft", "simulation", "launched"

  - `attributes.goal` (object)

  - `attributes.goal.name` (string, required)

  - `attributes.goal.description` (string)

  - `attributes.goal.segmentId` (string, required)

  - `attributes.goal.target` (object)

  - `attributes.goal.target.journeyId` (string, required)
    ID of an existing journey to jump to.

  - `attributes.goal.target.journeyStageId` (string, required)
    ID of an existing stage within the target journey to jump to.

  - `attributes.journeyStages` (array)

  - `attributes.journeyStages.id` (string)
    Server-generated. Omit when creating a stage; supply to target an existing stage when updating.

  - `attributes.journeyStages.name` (string, required)

  - `attributes.journeyStages.description` (string)

  - `attributes.journeyStages.steps` (object)

  - `attributes.journeyStages.steps.uuid` (any)

  - `attributes.journeyStages.steps.uuid.type` (string, required)
    Enum: "WaitStep"

  - `attributes.journeyStages.steps.uuid.name` (string, required)

  - `attributes.journeyStages.steps.uuid.waitStepType` (string, required)
    Enum: "Duration"

  - `attributes.journeyStages.steps.uuid.waitStep` (integer, required)

  - `attributes.journeyStages.steps.uuid.waitStepUnit` (string, required)
    Enum: "day", "week"

  - `attributes.journeyStages.steps.uuid.next` (string)

  - `attributes.journeyStages.steps.uuid.waitUntilDate` (string, required)

  - `attributes.journeyStages.steps.uuid.timezone` (string, required)

  - `attributes.journeyStages.steps.uuid.waitUntilDaysOfTheWeek` (array, required)
    Array of integer representing the day of the week.
1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday, 7: Sunday
    Example: [1,5,6]

  - `attributes.journeyStages.steps.uuid.conditions` (array, required)
    the path with segment is required, but the path with moveAfter as timedOutPath = true is optional

  - `attributes.journeyStages.steps.uuid.conditions.id` (string, required)

  - `attributes.journeyStages.steps.uuid.conditions.name` (string)

  - `attributes.journeyStages.steps.uuid.conditions.segmentId` (string)
    required if timedOutPath = false

  - `attributes.journeyStages.steps.uuid.conditions.timedOutPath` (boolean)

  - `attributes.journeyStages.steps.uuid.conditions.moveAfter` (integer)

  - `attributes.journeyStages.steps.uuid.conditions.unit` (string)
    Enum: "day", "week"

  - `attributes.journeyStages.steps.uuid.conditions.next` (string)

  - `attributes.journeyStages.steps.uuid.description` (string)

  - `attributes.journeyStages.steps.uuid.journeyActivationStepId` (string, required)

  - `attributes.journeyStages.steps.uuid.branches` (array, required)

  - `attributes.journeyStages.steps.uuid.branches.name` (string, required)

  - `attributes.journeyStages.steps.uuid.branches.segmentId` (string, required)

  - `attributes.journeyStages.steps.uuid.branches.excludedPath` (boolean)

  - `attributes.journeyStages.steps.uuid.branches.next` (string)

  - `attributes.journeyStages.steps.uuid.customizedSplit` (boolean, required)

  - `attributes.journeyStages.steps.uuid.uniqueId` (string)

  - `attributes.journeyStages.steps.uuid.randomizationMode` (string)
    Controls how variant assignments behave on re-entry. "sticky" (default): deterministic assignment, same variant on every entry. "reentry": fresh random assignment on each re-entry. "periodic": assignment stable within cadence window, re-randomized at boundary.
    Enum: "sticky", "reentry", "periodic"

  - `attributes.journeyStages.steps.uuid.periodicCadence` (string)
    Required when randomizationMode is "periodic". Defines the cadence at which variant assignments reset.
    Enum: "weekly", "monthly", "yearly"

  - `attributes.journeyStages.steps.uuid.periodicBoundaryMonth` (integer)
    Required when periodicCadence is "yearly". Month of the reset boundary (1-12).

  - `attributes.journeyStages.steps.uuid.periodicBoundaryDay` (integer)
    Required when periodicCadence is "monthly" or "yearly". Day of the reset boundary (1-31). If the specified day exceeds the number of days in a given month, the last day of that month is used.

  - `attributes.journeyStages.steps.uuid.periodicBoundaryDayOfWeek` (integer)
    Required when periodicCadence is "weekly". Day of the reset boundary using ISO-8601 numbering (1=Monday, 7=Sunday).

  - `attributes.journeyStages.steps.uuid.enabledCapping` (boolean)
    Enables profile capping on the step

  - `attributes.journeyStages.steps.uuid.variants` (array, required)

  - `attributes.journeyStages.steps.uuid.variants.id` (string, required)

  - `attributes.journeyStages.steps.uuid.variants.name` (string, required)

  - `attributes.journeyStages.steps.uuid.variants.percentage` (number, required)

  - `attributes.journeyStages.steps.uuid.variants.next` (string)

  - `attributes.journeyStages.steps.uuid.variants.isControlGroup` (boolean)
    Marks a variant as the control group (required when enabledCapping is true)

  - `attributes.journeyStages.steps.uuid.variants.cappingAt` (integer)
    Capping threshold per variant (required for non-control variants when capping is enabled)

  - `attributes.journeyStages.rootStep` (string)

  - `attributes.journeyStages.exitCriterias` (array)

  - `attributes.allowReentry` (boolean)

  - `attributes.reentryMode` (string)
    Enum: "no_reentry", "reentry_unless_goal_achieved", "reentry_always"

  - `attributes.journeyBundleId` (string)
    Attach the journey to an existing journey bundle as its next version.

  - `attributes.journeyBundleName` (string)

  - `attributes.journeyBundleDescription` (string)

## Response 200 fields (application/json):

  - `data` (array, required)

  - `data.id` (string, required)

  - `data.type` (string, required)
    Enum: "audience-behavior"

  - `data.attributes` (object, required)

  - `data.attributes.audienceId` (string, required)

  - `data.attributes.name` (string, required)
    Behavior name user defined on Master Segment Configuration page of Data Workbench

  - `data.attributes.parentDatabaseName` (string, required)
    Database name of the behavior table

  - `data.attributes.parentTableName` (string, required)
    Table name of the behavior table

  - `data.attributes.parentKey` (string, required)
    Join key of the behavior table

  - `data.attributes.foreignKey` (string, required)
    Foreign key of the master table

  - `data.attributes.matrixDatabaseName` (string, required)
    Matrix database name of the behavior table

  - `data.attributes.matrixTableName` (string, required)
    Matrix table name of the behavior table

  - `data.attributes.allColumns` (boolean, required)

  - `data.attributes.defaultTimeFilterEnabled` (boolean, required)

  - `data.attributes.isRealtime` (boolean, required)

  - `data.attributes.schema` (array, required)
    Columns of behavior

  - `data.attributes.schema.name` (string, required)
    Column name user defined on Master Segment Configuration page of Data Workbench

  - `data.attributes.schema.type` (string, required)
    Type of the column
    Enum: "string", "number", "timestamp", "date", "string_array", "number_array", "boolean"

  - `data.attributes.schema.parentColumn` (string, required)
    Column name of the behavior table (This can be null when the column is an enriched column)

  - `data.attributes.schema.matrixColumnName` (string)
    Column name of the behavior table

  - `data.attributes.schema.matrixColumnDescription` (string)
    Description of the column in behavior table

  - `data.attributes.schema.visibility` (string)
    Enum: "clear", "pii", "non_pii", "blocked"

